<%--
  Created by IntelliJ IDEA.
  User: 93984
  Date: 2020/9/16
  Time: 15:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>登陆</title>
  <link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body>
<div class="row">
  <div class="col-lg-offset-5 col-lg-3" style="margin-top: 8%">
    <form action="login" method="post">
      <div class="form-group">
        <label>姓名</label>
        <input type="text" class="form-control" placeholder="请输入您的姓名" name="username" id="username">
      </div>
      <div class="form-group">
        <label>密码</label>
        <input type="password" class="form-control " placeholder="请输入您的密码" name="password" id="password">
      </div>
      <span style="color: red"><%= request.getAttribute("error")==null?"":request.getAttribute("error")%></span>
      <div class="form-group">
        <input type="submit" class="form-control" value="登陆" onclick="login()">
<%--        <button class="btn btn-info" onclick="login()">登录</button>--%>
      </div>
    </form>

  </div>
</div>

<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/login.js"></script>
</body>
</html>